package com.junjun.ssm.dao;



import com.junjun.ssm.entity.UserEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface IUserDao extends CrudRepository<UserEntity,Long> {
    @Query("from  UserEntity  where  age>?1 and score<?2")
    public List<UserEntity> findAllByAgeAndScore(int age, int score);
}
